<template>
  <div>
    <router-link tag="p" to="/"> 返回 </router-link>
    <p>{{ region }}</p>
    <router-link tag="p" to="/"> 切换城市 </router-link>
  </div>
</template>
<style scoped>
* {
  margin: 0;
  padding: 0;
  font-size: 0.16rem;
}
p {
  float: left;
  width: 30%;
  text-align: center;
}
</style>
<script>
export default {
  data() {
    return {
      region: "1",
    };
  },
  mounted() {
    this.region = this.$route.query.region;
    console.log(this.region);
  },
};
</script>
